package fx;

import java.util.ArrayList;
import java.util.List;

public class TestGeneric1 {
    public static void main(String[] args) {
        String[]a=new String[5];
        a[2]="二狗子";
        a[4]="狗蛋";
        System.out.println(a[2]+a[4]);
        System.out.println(a);

        List list = new ArrayList();
        list.add(1);
        list.add("钢弹");
        list.add(11.22);
        list.add(a);
        System.out.println(list);

        List<String> list1 = new ArrayList<>();
        list1.add("狗剩");
        System.out.println(list1);



    }
}
